(function() {
  var __hasProp = {}.hasOwnProperty,
    __extends = function(child, parent) { for (var key in parent) { if (__hasProp.call(parent, key)) child[key] = parent[key]; } function ctor() { this.constructor = child; } ctor.prototype = parent.prototype; child.prototype = new ctor(); child.__super__ = parent.prototype; return child; };

  this.AdminSecurityRoutes = (function(_super) {

    __extends(AdminSecurityRoutes, _super);

    function AdminSecurityRoutes() {
      return AdminSecurityRoutes.__super__.constructor.apply(this, arguments);
    }

    AdminSecurityRoutes.prototype.routes = {
      "Security/LogOn*path": "LogOn",
      "Security/LogOff": "LogOff"
    };

    AdminSecurityRoutes.prototype.LogOn = function() {
      var model, view;
      model = new AdminSecurityModel();
      model.set("ReturnUrl", Url.GetParameterByName("ReturnUrl"));
      return view = new AdminSecurityView({
        model: model
      });
    };

    AdminSecurityRoutes.prototype.LogOff = function() {
      var url, view;
      Loading.Start();
      view = new WelcomeView({
        model: new WelcomeModel()
      });
      url = SiteMap.Admin.Security.LogOn;
      view.render();
      return $.ajax({
        url: SiteMap.Admin.Security.LogOff,
        success: function() {
          return view.Navigate(url, true);
        }
      });
    };

    return AdminSecurityRoutes;

  })(Backbone.Router);

}).call(this);
